package cn.iocoder.devlop.module.annual.report.alterstockinfo.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.devlop.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 企业年报股权变更信息 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class AlterstockinfoBaseVO {

    @Schema(description = "年报id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12663")
    @NotNull(message = "年报id不能为空")
    private String ancheid;

    @Schema(description = "股东名称")
    private String inv;

    @Schema(description = "转让前股权比例")
    private BigDecimal transampr;

    @Schema(description = "转让后股权比例")
    private BigDecimal transamaft;

    @Schema(description = "股权变更日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime altdate;

    @Schema(description = "年报年份")
    private String ancheyear;

    @Schema(description = "企业注册号")
    private String regno;

    @Schema(description = "企业主体分类 1,企业2,农合；3,个体 4 外商  5 常驻代表机构")
    private String entclassify;
}
